package cn.kgc.dto;

import java.io.Serializable;

import lombok.*;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 商品评价(PmsSpuComment)表实体类
 *
 * @author makejava
 * @since 2022-12-05 09:38:37
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel
@SuppressWarnings("serial")
public class PmsSpuCommentAddDTO implements Serializable {


    @ApiModelProperty(name = "skuId", value = "sku_id", dataType = "java.lang.Long")
    private Long skuId;    //sku_id

    @ApiModelProperty(name = "spuId", value = "spu_id", dataType = "java.lang.Long")
    private Long spuId;    //spu_id

    @ApiModelProperty(name = "spuName", value = "商品名字", dataType = "java.lang.String")
    private String spuName;    //商品名字

    @ApiModelProperty(name = "memberNickName", value = "会员昵称", dataType = "java.lang.String")
    private String memberNickName;    //会员昵称

    @ApiModelProperty(name = "star", value = "星级", dataType = "java.lang.Short")
    private Short star;    //星级

    @ApiModelProperty(name = "memberIp", value = "会员ip", dataType = "java.lang.String")
    private String memberIp;    //会员ip
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createTime", value = "创建时间", dataType = "java.util.Date")
    private Date createTime;   //创建时间


    @ApiModelProperty(name = "showStatus", value = "显示状态[0-不显示，1-显示]", dataType = "java.lang.Short")
    private Short showStatus;    //显示状态[0-不显示，1-显示]

    @ApiModelProperty(name = "spuAttributes", value = "购买时属性组合", dataType = "java.lang.String")
    private String spuAttributes;    //购买时属性组合

    @ApiModelProperty(name = "likesCount", value = "点赞数", dataType = "java.lang.Integer")
    private Integer likesCount;    //点赞数

    @ApiModelProperty(name = "replyCount", value = "回复数", dataType = "java.lang.Integer")
    private Integer replyCount;    //回复数

    @ApiModelProperty(name = "resources", value = "评论图片/视频[json数据；[{type:文件类型,url:资源路径}]]", dataType = "java.lang.String")
    private String resources;    //评论图片/视频[json数据；[{type:文件类型,url:资源路径}]]

    @ApiModelProperty(name = "content", value = "内容", dataType = "java.lang.String")
    private String content;    //内容

    @ApiModelProperty(name = "memberIcon", value = "用户头像", dataType = "java.lang.String")
    private String memberIcon;    //用户头像

    @ApiModelProperty(name = "commentType", value = "评论类型[0 - 对商品的直接评论，1 - 对评论的回复]", dataType = "java.lang.Short")
    private Short commentType;    //评论类型[0 - 对商品的直接评论，1 - 对评论的回复]


}
